#set size square

set xtics 5
set ytics 5



set mxtics 5
set mytics 5

set border lw 1

#set grid lt 2 lw 0.5 lc rgb "#DDDDDD"



set tmargin -2
set bmargin -2
set lmargin -2
set rmargin -2

set xtics scale 0.7
set ytics scale 0.7

set key top left

PS = 0.2
TR = 0.2

COL = 2

X1 = 19.0;
X2 = 56.0;
Y1 = 12.0;
Y2 = 29.0;

SIZEX = 900.0;
SIZEY = SIZEX*(Y2-Y1)/(X2-X1);

set xrange [X1:X2]
set yrange [Y1:Y2]
#set yrange [-20:20]
#set y2range [-19.5:19.5]

#set xlabel "R [kpc]"
#set ylabel "R [kpc]"
set format y2 "%.1f"
set format x2 "%.1f"

gstepx = 20.00


set term pngcairo dashed truecolor font "Monospace, 11" size SIZEX, SIZEY  enhanced


while (gstepx<25.5) {

	set x2tics 0.0, gstepx
	set y2tics 0.0, gstepx

	set output sprintf("comp.png/comp.%.2f.LD.png", gstepx)

	set multiplot
	
	unset grid
	set grid xtics mxtics ytics mytics lt 1 lc rgb '#F2F2F2', lt 1 lc rgb '#D0D0D0' lw 0.1
	plot 1/0 t ""
	
	unset grid
	set grid x2tics y2tics lt 1 lw 1 lc rgb "#BBBBBB" back
	plot 1/0 t ""
	
	unset grid

	#plot "comp.8.LD.txt" u 1:COL:(PS) with circles lc rgb "#FF5D00" fs transparent solid TR noborder t sprintf("gstepx=%.2f", gstepx)
	plot sprintf("<./md911cs_ -nw -gstepx %g", gstepx) u 1:COL:(PS) with circles lc rgb "#FF5D00" fs transparent solid TR noborder t sprintf("gstepx=%.2f", gstepx)
	
	unset multiplot
	unset grid
	
	unset x2tics
	unset y2tics
	
	gstepx = gstepx + 0.01

}


exit



gstepx = 2.84;
while (gstepx<16.0) {

set x2tics gstepx
set y2tics gstepx

set output sprintf("comp.png/comp.%.2f.LD.png", gstepx)
plot \
sprintf("<./md911cs -nw -gstepx %g", gstepx) u 1:COL:(PS) with circles lc rgb "#FF5D00" fs transparent solid TR noborder t sprintf("gstepx=%.2f", gstepx)
gstepx = gstepx + 0.1

}

